<div class="types form">
<div class="actions  specific">
	<ul>
		<li><?php echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $this->Form->value('Type.id')), null, sprintf(__('Esta seguro que desea eliminar el tipo # %s?', true), $this->Form->value('Type.id'))); ?></li>
	</ul>
</div>
<?php echo $this->Form->create('Type');?>
	<fieldset>
		<legend><?php __('Dar Baja de Tipo'); ?></legend>
	<?php
		echo $this->Form->input('id', array('label' => 'Id'));
//		echo $this->Form->input('name', array('label' => 'Nombre'));
                echo $this->Form->input('termination_date', array('label' => 'Fecha de Baja', 'type' => 'text', 'readonly' => 'readonly'));
	?>
	</fieldset>
<?php echo $this->Form->end(__('Guardar', true));?>
</div>
<script type="text/javascript">
    (function($){
        // Date picker
        $("#TypeTerminationDate").datepicker({
            //yearRange: '1970:2010',
            defaultDate: new Date(),
            dateFormat: 'dd/mm/yy',
            changeMonth: true,
            changeYear: true
        });
        
        //toda la documentacion de esta librería la encontras aca
        //http://jqueryui.com/demos/datepicker/
    })(jQuery);
</script>
